package com.earthquake.monitor_system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.earthquake.monitor_system.domain.IconClassifyDomain;
import com.earthquake.monitor_system.domain.IconDomain;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface IconClassifyDao  {
    @Insert("INSERT INTO icon_classify(classification) VALUES (#{name});")
    public Boolean inset(String name);
    @Select("select * from icon_classify where classification=#{name};")
    public IconClassifyDomain getOne(String name);
    @Select("select * from icon_classify;")
    public List<IconClassifyDomain> getAll();
}
